<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background: skyblue;
        }
    </style>
</head>

<body>
    <button id="btn">点击改变颜色</button>
    <script src="js/utils.js"></script>
    <script>
        btn.onclick = function () {
            var color = random(0, 255) + random(0, 255) + random(0, 255)
            console.log(color)
            document.body.style.background = '#' + color

        }
    </script>
</body>

</html>